package cc.uncarbon.module.appapi.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑加油记录 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminBookBydInsertOrUpdateDTO implements Serializable {

    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "加油时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "加油时间不能为空")
    private LocalDate date;

    @Schema(description = "加油金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "加油金额不能为空")
    private BigDecimal money;

    @Schema(description = "油价", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "油价不能为空")
    private BigDecimal oilPrice;

}
